<template>
  <el-dialog class="dialogBaojia" :model-value="showbaojia" width="90%" @close="closeDialog">
      <template #header="">
        <div class="my-header"></div>
      </template>
      <div class="php_baojia">
        <div class="from">
          <h2>装修报价</h2>
          <h3>
            今天已有
            <span>537</span>
            位业主获取了装修预算
          </h3>
          <ul>
            <li>
              <i></i>
              <input type="text" placeholder="您的称呼：" />
              <b>*</b>
            </li>
            <li>
              <i></i>
              <input type="text" maxlength="11" placeholder="您的电话：" />
              <b>*</b>
            </li>
            <li>
              <i></i>
              <input type="text" placeholder="您的面积：" />
              <b>*</b>
            </li>
          </ul>
          <div class="btns">
            <div>免费获取报价</div>
          </div>
        </div>
        <div class="right">
          <div>
            <h3>
              您的装修预算
              <span>30078</span>
              元
            </h3>
            <ul>
              <li>
                <b>材料费：</b>
                <span>10156</span>
                <b>元</b>
              </li>
              <li>
                <b>人工费：</b>
                <span>13865</span>
                <b>元</b>
              </li>
              <li>
                <b>设计费：</b>
                <span>5357</span>
                <b>元</b>
              </li>
              <li>
                <b>质检费：</b>
                <span>700</span>
                <b>元</b>
              </li>
            </ul>
          </div>
          <p>*装修价格会根据实际情况上下有所浮动</p>
        </div>
      </div>
    </el-dialog>
</template>

<script setup>
defineProps({
  showbaojia: Boolean
})
const emits = defineEmits('show-event')
const closeDialog = () => {
  emits('show-event', false)
}
</script>

<style>

.php_baojia .from {
  padding: 0.62rem 0 0.8rem;
  border-bottom: 0.01rem solid #b5b5b5;
}

.php_baojia .from h2 {
  font-size: 0.46rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.php_baojia .from h3 {
  font-size: 0.26rem;
  font-weight: 400;
  color: #666;
  margin: 0.16rem 0 0.65rem;
  text-align: center;
}

.php_baojia .from h3 span {
  font-family: Gilroy-Bold;
  color: #dd292c;
}

.php_baojia .from ul li {
  width: 5.5rem;
  height: 0.73rem;
  background: #f6f8f9;
  margin: 0 auto 0.1rem;
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  position: relative;
}

.php_baojia .from ul li i {
  width: 0.24rem;
  height: 0.24rem;
  background: url(/src/assets/img/baojia1.png)
    no-repeat;
  background-size: 0.21rem auto;
}

.php_baojia .from ul li b {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-30%);
  font-size: 0.18rem;
  font-weight: 400;
  color: #dd292c;
}

.php_baojia .from ul li input {
  height: 100%;
  background: none;
  border: none;
  color: #000;
  font-size: 0.24rem;
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  font-weight: 700;
  padding-left: 0.19rem;
}

.php_baojia .from ul li input::-moz-placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_baojia .from ul li input:-ms-input-placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_baojia .from ul li input::placeholder {
  font-family: Microsoft Yahei, -apple-system, PingFang SC, Helvetica Neue, STHeiti, Tahoma, Simsun,
    sans-serif;
  color: #999;
  font-size: 0.24rem;
  font-weight: 400;
}

.php_baojia .from ul li:nth-child(2) i {
  background: url(/src/assets/img/baojia2.png)
    no-repeat;
  background-size: 0.22rem auto;
}

.php_baojia .from ul li:nth-child(3) i {
  background: url(/src/assets/img/pingfang.png)
    no-repeat;
  background-size: 0.24rem auto;
}

.php_baojia .from .btns {
  width: 100%;
  display: flex;
  margin-top: 0.2rem;
  justify-content: center;
}

.php_baojia .from .btns div {
  width: 90%;
  height: 0.72rem;
  line-height: 0.72rem;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.24rem;
  background: #dd292c;
  box-shadow: 0 0.1rem 0.2rem 0 rgba(236, 84, 0, 0.2);
}

.php_baojia .from .btns div:nth-child(2) {
  background: #fff;
  color: #000;
  box-shadow: 0 0.1rem 0.2rem 0 rgba(236, 84, 0, 0);
  margin-left: 0.2rem;
  border: 0.02rem solid #dd292c;
}
.php_baojia .right {
  padding-top: 0.5rem;
}

.php_baojia .right > div h3 {
  font-size: 0.3rem;
  font-weight: 700;
  color: #000;
  text-align: center;
}

.php_baojia .right > div h3 span {
  font-size: 0.46rem;
  color: #dd292c;
  display: inline-block;
}

.php_baojia .right > div ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0.35rem auto 0;
}

.php_baojia .right > div ul li {
  width: 50%;
  height: 0.17rem;
  display: flex;
  align-items: center;
}

.php_baojia .right > div ul li:first-child,
.php_baojia .right > div ul li:nth-child(2) {
  margin-bottom: 0.3rem;
}

.php_baojia .right > div ul li:first-child,
.php_baojia .right > div ul li:nth-child(3) {
  justify-content: flex-end;
  padding-right: 0.2rem;
}

.php_baojia .right > div ul li:nth-child(2),
.php_baojia .right > div ul li:nth-child(4) {
  padding-left: 0.2rem;
}

.php_baojia .right > div ul li b {
  font-size: 0.26rem;
  font-weight: 700;
  color: #333;
}

.php_baojia .right > div ul li span {
  font-size: 0.26rem;
  color: #dd292c;
  font-weight: 700;
  width: 0.85rem;
  font-family: Gilroy-Bold;
}

.php_baojia .right p {
  font-size: 0.24rem;
  font-weight: 400;
  color: #999;
  line-height: 0.45rem;
  margin-top: 0.65rem;
  text-align: center;
}
</style>